<%-- 
    Document   : select_username
    Created on : Dec 9, 2009, 4:45:54 PM
    Author     : djorge
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<jsp:useBean class="Cliente.WebGestor" id="webMyTwi" scope="session"/>

<%
String selection = request.getParameter("lista_search");
String submited = request.getParameter("detalhes");
String name = "";
String local = "";
String [] detalhes = null;
System.out.println("SELECTION:::::::::::::::::::::::::::::::::::::::::::"+selection);
if ("Detalhes".equalsIgnoreCase(submited)){
    //adicionar código para apresentar os detalhes do utilizador seleccionado
    System.out.println("A entrar no metodo de select!!!");
    detalhes = webMyTwi.getDetails(selection);
    name = detalhes[1];
    local = detalhes[2];
    System.out.println("---------------------------------------------"+name);
    System.out.println("---------------------------------------------"+local);
}
%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <form name="Follow" action="follow.jsp" target="garbage_can" method="post" >
            <table>
                <tbody>
                    <tr>
                        <td><input type="text" name="username" value="<%= selection %>" readonly="readonly" size="10" style="color:gray; background:transparent; background-image:url(IMG/bg-txt.png);background-repeat:repeat" /> <input type="submit" value="Seguir" name="follow" /></td>
                    </tr>
                    <tr>
                        <td><textarea name="timeline" rows="1" cols="20" readonly="readonly" style="color:gray; text-align:justify; background:transparent; background-image:url(IMG/bg-txt.png);background-repeat:repeat">Name: <%= name %>
Local: <%= local %></textarea>
                    </tr>
                </tbody>
            </table>
        </form>
    </body>
</html>
